package com.jhclothing.product.domain;

import com.jhclothing.common.annotation.Excels;
import com.jhclothing.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jhclothing.common.annotation.Excel;

/**
 * 服饰库存对象 clothing_inventory
 * 
 * @author zyp
 * @date 2024-04-24
 */
public class ClothingInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long clothingInventoryId;

    /** 服饰尺码 */
    @Excel(name = "服饰尺码", readConverterExp = "0=S码,1=M码,2=L码,3=XL码,4=XXL码,5=XXXL码,6=XXXXL码", sort=4)
    private String clothingSize;

    /** 当前库存(单位：套) */
    @Excel(name = "当前库存(单位：套)", sort=5, width=30)
    private Integer nowInventory;

    /** 库存预警数值(单位：套) */
    @Excel(name = "库存预警数值(单位：套)", sort=6, width=30)
    private Integer alertLessThanCount;

    /** 关联服饰品类ID */
    private Long clothingTypeId;

    /**
     * 关联服饰品类信息
     */
    @Excels({
            @Excel(name = "品类编码", targetAttr = "clothingTypeCode", type = Excel.Type.EXPORT, sort=1),
            @Excel(name = "品类名称", targetAttr = "clothingTypeName", type = Excel.Type.EXPORT, sort=2),
            @Excel(name = "服饰类别", targetAttr = "clothingSex", type = Excel.Type.EXPORT, readConverterExp = "0=男款,1=女款,2=未知", sort=3),
    })
    private ClothingType clothingType;

    /**
     * 查询条件：品类编码
     */
    private String clothingTypeCode;

    /**
     * 查询条件：品类名称
     */
    private String clothingTypeName;

    /**
     * 查询条件：服饰类别
     */
    private String clothingSex;

    public void setClothingInventoryId(Long clothingInventoryId) 
    {
        this.clothingInventoryId = clothingInventoryId;
    }

    public Long getClothingInventoryId() 
    {
        return clothingInventoryId;
    }
    public void setClothingSize(String clothingSize) 
    {
        this.clothingSize = clothingSize;
    }

    public String getClothingSize() 
    {
        return clothingSize;
    }
    public void setNowInventory(Integer nowInventory) 
    {
        this.nowInventory = nowInventory;
    }

    public Integer getNowInventory() 
    {
        return nowInventory;
    }
    public void setAlertLessThanCount(Integer alertLessThanCount) 
    {
        this.alertLessThanCount = alertLessThanCount;
    }

    public Integer getAlertLessThanCount() 
    {
        return alertLessThanCount;
    }
    public void setClothingTypeId(Long clothingTypeId) 
    {
        this.clothingTypeId = clothingTypeId;
    }

    public Long getClothingTypeId() 
    {
        return clothingTypeId;
    }

    public ClothingType getClothingType() {
        return clothingType;
    }

    public void setClothingType(ClothingType clothingType) {
        this.clothingType = clothingType;
    }

    public String getClothingTypeCode() {
        return clothingTypeCode;
    }

    public void setClothingTypeCode(String clothingTypeCode) {
        this.clothingTypeCode = clothingTypeCode;
    }

    public String getClothingTypeName() {
        return clothingTypeName;
    }

    public void setClothingTypeName(String clothingTypeName) {
        this.clothingTypeName = clothingTypeName;
    }

    public String getClothingSex() {
        return clothingSex;
    }

    public void setClothingSex(String clothingSex) {
        this.clothingSex = clothingSex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("clothingInventoryId", getClothingInventoryId())
            .append("clothingSize", getClothingSize())
            .append("nowInventory", getNowInventory())
            .append("alertLessThanCount", getAlertLessThanCount())
            .append("clothingTypeId", getClothingTypeId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
